--
-- created with TexturePacker (http://www.texturepacker.com)
--
-- $TexturePacker:SmartUpdate:6f308e6bbb848ac086898f350be615d2$
--
-- local sheetInfo = require("myExportedImageSheet") -- lua file that Texture packer published
--
-- local myImageSheet = graphics.newImageSheet( "ImageSheet.png", sheetInfo:getSheet() ) -- ImageSheet.png is the image Texture packer published
--
-- local myImage1 = display.newImage( myImageSheet , sheetInfo:getFrameIndex("image_name1"))
-- local myImage2 = display.newImage( myImageSheet , sheetInfo:getFrameIndex("image_name2"))
--

local SheetInfo = {}

SheetInfo.sheet =
{
    frames = {
    
        {
            -- area1-1
            x=2,
            y=668,
            width=108,
            height=220,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 108,
            sourceHeight = 219
        },
        {
            -- area1-2
            x=350,
            y=446,
            width=108,
            height=220,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 108,
            sourceHeight = 219
        },
        {
            -- area1-3
            x=350,
            y=224,
            width=108,
            height=220,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 108,
            sourceHeight = 219
        },
        {
            -- area1-4
            x=350,
            y=2,
            width=108,
            height=220,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 108,
            sourceHeight = 219
        },
        {
            -- area2-1
            x=176,
            y=312,
            width=172,
            height=308,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 171,
            sourceHeight = 307
        },
        {
            -- area2-2
            x=2,
            y=312,
            width=172,
            height=308,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 171,
            sourceHeight = 307
        },
        {
            -- area2-3
            x=176,
            y=2,
            width=172,
            height=308,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 171,
            sourceHeight = 307
        },
        {
            -- area2-4
            x=2,
            y=2,
            width=172,
            height=308,

            sourceX = 0,
            sourceY = 0,
            sourceWidth = 171,
            sourceHeight = 307
        },
    },
    
    sheetContentWidth = 512,
    sheetContentHeight = 1024
}

SheetInfo.frameIndex =
{

    ["area1-1"] = 1,
    ["area1-2"] = 2,
    ["area1-3"] = 3,
    ["area1-4"] = 4,
    ["area2-1"] = 5,
    ["area2-2"] = 6,
    ["area2-3"] = 7,
    ["area2-4"] = 8,
}

function SheetInfo:getSheet()
    return self.sheet;
end

function SheetInfo:getFrameIndex(name)
    return self.frameIndex[name];
end

return SheetInfo
